package com.letoken.platform.repo.sss.valid;

import com.letoken.platform.repo.sss.validator.EthereumAddressValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = EthereumAddressValidator.class)
public @interface ValidEthereumAddress {
    String message() default "地址格式不正確";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
